package com.fr.report.script;

import com.fr.base.ColumnRow;
import java.util.Map;

public class TreeLayerNameSpace extends AbstractNameSpace
{
  private int layerIndex;
  private Object currentValue;
  private transient Map layIndexMap = null;

  public TreeLayerNameSpace(Map paramMap)
  {
    this.layIndexMap = paramMap;
  }

  public Object getVariable(Object paramObject, Calculator paramCalculator)
  {
    if ((!(paramObject instanceof String)) || (!(((String)paramObject).startsWith("@"))))
      return null;
    return this.layIndexMap.get(paramObject.toString().substring(1));
  }

  public Object getCellElementAttribute(ColumnRow paramColumnRow, Object paramObject, Calculator paramCalculator)
  {
    return null;
  }
}